home *** CD-ROM | disk | FTP | other *** search
- on exitFrame
- global gGameSol, gNumberOfMovesLeft, gDifficultyLevel, gResponses
- if (gGameSol <> 0) and (gNumberOfMovesLeft > 0) then
- lastMove = value(item 4 of gResponses)
- put gGameSol into item 4 of gResponses
- go("play")
- else
- if gGameSol = 0 then
- puppetSprite(67, 0)
- go("win")
- else
- go("lose")
- end if
- end if
- end
-